﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QiHe
{
    public partial class Add_Log_Task : Form
    {
        DataSet HSPEGNList;
        string Flag;
        public Add_Log_Task(string EQFlag)
        {
            InitializeComponent();
            Flag = EQFlag;
            MedEQ.Service1 sop = new MedEQ.Service1();
            HSPEGNList = sop.Serv_HSP_Egn_List(DataTemp.HSPID);

            comboBox1.DataSource = HSPEGNList.Tables[0];
            comboBox1.DisplayMember = "ChineseName";
            comboBox1.ValueMember = "ID";
        }

        private void Add_Log_Task_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
           /* MedEQ.Service1 sop = new MedEQ.Service1();


            MedEQ.MySoapHeader Header = new MedEQ.MySoapHeader();//web引用创建soap头对象(改成您自己的)
            //设置soap头变量
            Header.UserName = "lee";
            Header.PassWord = "cmu4hlee1008";
            sop.MySoapHeaderValue = Header;
            String TD = DateTime.Today.Year.ToString() + "/" + DateTime.Today.Month.ToString() + "/" + DateTime.Today.Day.ToString();
            string result = sop.Add_Task("12", Guid.NewGuid().ToString(), Flag, textBox1.Text, "无", comboBox1.SelectedValue.ToString(),TD, "0", comboBox1.SelectedValue.ToString(), "维护中"
                , "0", "0", "0", "2", DataTemp.HSPID, "维修", "0");
            if (result == "1")
            {
                MessageBox.Show("添加成功");
                this.Dispose();
            }
            * */
        




        
        }
    }
}
